<?php

namespace app\admin\validate;

use think\Validate;

class Bmlist extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'tel' => 'require|unique:bmlist',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'tel.unique' => '电话号码已经存在！',
        'tel.require' => '电话号码不能为空！',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['tel'],
    ];
    
}
